import { RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/modal-training',
    component: () => import('@/views/online-lab/model-training/index.vue'),
    meta: { title: '模型训练' },
    redirect: '/modal-training/list',
    children: [
      {
        path: '/modal-training/list',
        component: () => import('@/views/online-lab/model-training/list/index.vue')
      },
      {
        path: '/modal-training/add',
        component: () => import('@/views/online-lab/model-training/edit/index.vue')
      },
      {
        path: '/modal-training/detail/:id',
        component: () => import('@/views/online-lab/model-training/detail/index.vue')
      },
      {
        path: '/modal-training/predicted/:id',
        component: () => import('@/views/online-lab/model-training/predicted/index.vue')
      }
    ]
  }
]

export default routes
